/*************************************************
Author: will
Date: 9/24/2012
Description:
Notes: 
*************************************************/

#ifndef __cmdmapinfo_h__
#define __cmdmapinfo_h__

#include "../maindef.h"
#include "commclass.h"
#include "PBMsgHead.pb.h"

#include "MsgMapInfo.pb.h"
#include "MsgMoveTo.pb.h"
#include "../map/CMapView.h"

class CMainCtrl;
class CCmdGetMapInfo : public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqMapInfo stReq;
    bool            bHasGetMapUsers;
    unsigned int _uiMapID;
    CSingleMapView::MAP_VIEW_NOTIFY_USERS_ARRAY astMapUsers;
};

class CCmdMapMoveTo : public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqMoveTo stReq;
    MsgAnsMoveTo stAns;

    unsigned int _uiNewMapID;
    unsigned int _uiOrgMapID;
    unsigned short _usNewPosX;
    unsigned short _usNewPosY;

    bool _bIsChgMap;
};


#endif // __cmdmapinfo_h__

